cmake_minimum_required(VERSION 3.10.0)

project(05_HelloTriangle CXX)

include(../cmake/Find3rdLibs.cmake)

add_executable(${PROJECT_NAME} main.cpp)
target_link_libraries(${PROJECT_NAME}  GL::GLLIBS)

set(RUNPATH "${PROJECT_SOURCE_DIR}/../prebuilts/dll")
file(COPY ${PROJECT_SOURCE_DIR}/triangle.vs DESTINATION ${RUNPATH}/)
file(COPY ${PROJECT_SOURCE_DIR}/triangle.fs DESTINATION ${RUNPATH}/) 
set_target_properties(${PROJECT_NAME} PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY ${RUNPATH})